/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import lombok.experimental.Tolerate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * ClassName: SyncDishesRecord <br/>
 * Function: 菜品下发记录 <br/>
 * date: 2019-02-14 14:13:04 <br/>
 *
 * @author liuwenjin
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="sync_dishes_records")
public class SyncDishesRecord extends MerchantGroupBaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	// 菜品库id 
    @Column(name="store_id")
	private Long storeId = null;

	// 菜品库名称 
    @Column(name="store_name", length = 300)
	private String storeName = null;

	// 下发门店id 
    @Column(name="branch_id")
	private Long branchId = null;

	// 门店名称 
    @Column(name="branch_name", length = 300)
	private String branchName = null;

	// 菜谱id 
    @Column(name="menu_id")
	private Long menuId = null;

	// 下发时间 
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    @Column(name="issue_time")
	private Date issueTime = null;

	// 下发内容 {dishes:[],materials:[]}
    @Column(name="content", columnDefinition = "mediumtext")
	private String content = null;

	// 操作人 
    @Column(name="operator_name", length = 300)
	private String operatorName = null;


    @Tolerate
	public SyncDishesRecord() {
		
	}
    @Tolerate
	public SyncDishesRecord(Long id){
    	super.setId(id);
    }
	
	/**
	 * 获取菜品库id
	 */
	public Long getStoreId() {
		return this.storeId;
	}

    /**
     * 设置菜品库id
     */
	public SyncDishesRecord setStoreId(Long storeId) {
		this.storeId = storeId;
		return this;
	}

	/**
	 * 获取菜品库名称
	 */
	public String getStoreName() {
		return this.storeName;
	}

    /**
     * 设置菜品库名称
     */
	public SyncDishesRecord setStoreName(String storeName) {
		this.storeName = storeName;
		return this;
	}

	/**
	 * 获取下发门店id
	 */
	public Long getBranchId() {
		return this.branchId;
	}

    /**
     * 设置下发门店id
     */
	public SyncDishesRecord setBranchId(Long branchId) {
		this.branchId = branchId;
		return this;
	}

	/**
	 * 获取门店名称
	 */
	public String getBranchName() {
		return this.branchName;
	}

    /**
     * 设置门店名称
     */
	public SyncDishesRecord setBranchName(String branchName) {
		this.branchName = branchName;
		return this;
	}

	/**
	 * 获取菜谱id
	 */
	public Long getMenuId() {
		return this.menuId;
	}

    /**
     * 设置菜谱id
     */
	public SyncDishesRecord setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}

	/**
	 * 获取下发时间
	 */
	public Date getIssueTime() {
		return this.issueTime;
	}

    /**
     * 设置下发时间
     */
	public SyncDishesRecord setIssueTime(Date issueTime) {
		this.issueTime = issueTime;
		return this;
	}

	/**
	 * 获取下发内容
	 */
	public String getContent() {
		return this.content;
	}

    /**
     * 设置下发内容
     */
	public SyncDishesRecord setContent(String content) {
		this.content = content;
		return this;
	}

	/**
	 * 获取操作人
	 */
	public String getOperatorName() {
		return this.operatorName;
	}

    /**
     * 设置操作人
     */
	public SyncDishesRecord setOperatorName(String operatorName) {
		this.operatorName = operatorName;
		return this;
	}

}
